added Feb 2001 SDK
[windows-sources.git] / shared source / sscli20 / jscript / engine / continueoutoffinally.cs
blob68d356b4327dc4bc07c789a7b260cd989b42d390
1 // ==++==
2 //
3 //
4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
5 //
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
10 //
11 // You must not remove this notice, or any other, from this software.
12 //
13 //
14 // ==--==
16 namespace Microsoft.JScript {
18 using System;
19 using System.Security.Permissions;
20 using System.Runtime.Serialization;
22 [Serializable]
23 public sealed class ContinueOutOfFinally : ApplicationException{
24 public int target;
26 public ContinueOutOfFinally() : this(0) {
29 public ContinueOutOfFinally(int target){
30 this.target = target;
33 public ContinueOutOfFinally(string m) : base(m) {
36 public ContinueOutOfFinally(string m, Exception e) : base(m, e) {
39 private ContinueOutOfFinally(SerializationInfo s, StreamingContext c) : base(s, c) {
40 this.target = s.GetInt32("Target");
43 [SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true)]
44 public override void GetObjectData(SerializationInfo s, StreamingContext c)
46 base.GetObjectData(s, c);
47 s.AddValue("Target", this.target);